package user;

import book.BookList;
import ioperations.BorrowOperation;
import ioperations.IOPeration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liangyuanzhang
 * Date: 2025-3-01
 * Time: 18:40
 */
public abstract class User {
    protected String name;
    //此时这个数组 没有初始化
    protected IOPeration[] ioPerations;

    //此时这里为了子类当中初始化父类的成员
    public User(String name){
        this.name = name;
    }

    public abstract int menu();

    public void doIoperation(int choice, BookList bookList){
        ioPerations[choice].work(bookList);
    }
}
